//
//  LY_Cover_TableViewCell.m
//  iSee
//
//  Created by dllo on 16/8/6.
//  Copyright © 2016年 LY. All rights reserved.
//

#import "SE_Cover_TableViewCell.h"
#import "UIImageView+WebCache.h"
#import "SE_Item_Model.h"


@interface SE_Cover_TableViewCell()

@property (nonatomic, retain) UIImageView *coverImage;

@end

@implementation SE_Cover_TableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.coverImage = [[UIImageView alloc]init];
        [self.contentView addSubview:self.coverImage];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.coverImage.frame = self.contentView.bounds;
}

-(void)setItemModel:(SE_Item_Model *)itemModel{
    _itemModel = itemModel;
    [self.coverImage sd_setImageWithURL:[NSURL URLWithString:itemModel.feed] placeholderImage:[UIImage imageNamed:@"holder"]];
}


@end










